<%@ page contentType="text/html;charset=UTF-8"%>
<!DOCTYPE HTML">
<html>
  <head>
    <title>sparkboy</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<link rel="stylesheet" type="text/css" href="/ext4.1gpl/resources/css/ext-all.css">
	<link rel="stylesheet" type="text/css" href="/ext4.1gpl/examples/shared/example.css">
	<link rel="stylesheet" type="text/css" href="/ext4.1gpl/examples/ux/css/TabScrollerMenu.css">
	<link rel="stylesheet" type="text/css" href="/ext4.1gpl/examples/ux/css/CheckHeader.css">
	<link rel="stylesheet" type="text/css" href="/MyDesktop/css/desktop.css">
	<link rel="stylesheet" type="text/css" href="/core/css/comm.css">
	<script type="text/javascript" src="/ext4.1gpl/ext-all-debug.js"></script>
	<script type="text/javascript" src="/ext4.1gpl/examples/shared/examples.js"></script>
	<script type="text/javascript" src="/ext4.1gpl/locale/ext-lang-zh_CN.js"></script>
	<script type="text/javascript" src="/core/coreApp/util/comm.js"></script>
	<script type="text/javascript" src="/core/coreApp/util/overrideUtil.js"></script>
	<script type="text/javascript" src="/core/loader.js"></script>
	<script type="text/javascript" src="/core/app.js"></script>
	<script type="text/javascript">
	var clientWidth;
	var clientHeight;
	var screenWidth;
	var screenHeight;
	var resolutionWidth;
	var resolutionHeight;
	window.onload = function(){
		clientWidth = document.body.clientWidth;
		clientHeight = document.body.clientHeight;
		screenWidth = document.body.scrollWidth;
		screenHeight =document.body.scrollHeight;
		resolutionHeight = window.screen.height;
		resolutionWidth = window.screen.width;
		comm.add("clientWidth",clientWidth);
		comm.add("clientHeight",clientHeight);
		comm.add("screenWidth",screenWidth);
		comm.add("screenHeight",screenHeight);
		comm.add("resolutionHeight",resolutionHeight);
		comm.add("resolutionWidth",resolutionWidth);
	};
	
	Ext.override(Ext.ZIndexManager,{
		tempHidden:[],
		show: function(){
			var comp, x, y;
			while(comp = this.tempHidden.shift()){
				x = comp.x;
				y = comp.y;
				comp.show();
				comp.setPosition(x,y);
			}
		}
	});
	
	Ext.Loader.setConfig({
		enabled:true,
		paths:{
			'Ext.ux.desktop':'MyDesktop/js',
			'MyDesktop':'MyDesktop',
			'core':'core'
		}
	});
	
	Ext.require([
	             'MyDesktop.App'
	             ]);
	
	var myDesktopApp;
	Ext.onReady(function(){
		myDesktopApp = new MyDesktop.App();
	});
	</script>
  </head>
  <body>
  </body>
</html>
